/*
 * @Description:
 * @Date: 2024-07-05 09:10:40
 * @LastEditTime: 2024-07-20 16:42:49
 */
import { http } from '@/utils/http'
/** POST 请求 */
export const reportCreateAPI = (data) => {
  return http({
    url: `/app-api/countryside/report/create`,
    method: 'POST',
    data,
  })
}

// 获得三务公开分页
export const getSanWuPage = (query) => {
  return http({
    url: `/app-api/countryside/disclosure-affairs/page`,
    method: 'GET',
    query,
  })
}
// 获得首页轮播图
export const getbannerPage = (data) => {
  return http({
    url: `/admin-api/countryside/carousel_image/page`,
    method: 'POST',
    data,
  })
}
// 获得消息通知分页
export const getMessage = (query) => {
  return http({
    url: `/app-api/countryside/message-recored/page`,
    method: 'GET',
    query,
  })
}
// 获得消息通知详情
export const getMessageDetail = (id) => {
  return http({
    url: '/app-api/countryside/message-recored/get?id=' + id,
    method: 'GET',
  })
}
// 获得咨询tab
export const getClassify = (query) => {
  return http({
    url: `/admin-api/system/dict-data/page`,
    method: 'GET',
    query,
  })
}

// 获得咨询详情
export const getClassifyDetails = (id) => {
  return http({
    url: '/admin-api/countryside/article/get?id=' + id,
    method: 'GET',
  })
}
// 获得咨询详情
export const getBannerDetails = (id) => {
  return http({
    url: '/admin-api/countryside/carousel_image/get?id=' + id,
    method: 'GET',
  })
}

// 获得咨询内容
export const getClassifyContent = (data) => {
  return http({
    url: `/admin-api/countryside/article/page`,
    method: 'POST',
    data,
  })
}
// 获取气象和土壤数据
export const getWeather = (data) => {
  return http({
    url: '/app-api/countryside/weather/getAlarmPage',
    method: 'POST',
    data,
  })
}
// 获取气象详情
export const getWeatherDetail = (id) => {
  return http({
    url: '/app-api/countryside/weather/get?id=' + id,
    method: 'GET',
  })
}
// 获得所有鲜果分页
export const getfreshFruitPage = (data) => {
  return http({
    url: '/app-api/countryside/fresh_fruit/page',
    method: 'POST',
    data,
  })
}
